#ifndef CSEARCHSERVICE_H
#define CSEARCHSERVICE_H

#include <QObject>
#include <memory>
#include "protocol.h"
#include <QList>
#include <QMap>
#include <QPair>
#include <QJsonArray>
#include <QJsonDocument>
#include <QJsonObject>
class CSearchService : public QObject
{
    Q_OBJECT
public:
    explicit CSearchService(QObject *parent = nullptr);

    void RecvOnlineFindRespond(std::shared_ptr<PDU> recvBag);

    void RecvAllNetScanRespond(std::shared_ptr<PDU> recvBag);
signals:
    void EmitOnlineFindResult(QList<QPair<QString,QString>> Result);

    void EmitAllNetScanAll(QList<QPair<QString,QString>> Result);
};

#endif // CSEARCHSERVICE_H
